<?php

// 获取投资人名片
// GET member.card.get

namespace app\api\resource\member\card;
use think\Db;
use think\Session;

class Get
{
    // 方法
    public $_method = ['GET'];
    // 前置
    public $_pre    = ['login','isTzz'];
    // 描述
    public $_description = '获取投资人名片';
    // 参数
    public $_param  = [
    ];
    // 返回
    public $_return = [
        200 => '获取成功',
    ];

    public function run(&$request)
    {
        $memberId = Session::get('member.id');

        $ret = Db::name('member_like')->where('member_id',$memberId)->field('card')->find();

        return [200,$ret];
    }
}
